package cn.bby.query.server.infrastructure.db.mapper;

import cn.bby.query.server.domain.agg.metadata.entity.DsSettingsInfo;
import cn.bby.query.server.infrastructure.db.entity.DsSettingsDb;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author ben
 * @since 2025/4/26 15:54
 */
@Mapper
public interface DsSettingsDbMapper extends BaseMapper<DsSettingsDb> {
    @Select("select d.*, table_id,table_name from ds_settings_db d" +
            " left join public.ds_settings_table t on d.ds_id = t.ds_id;")
    List<DsSettingsInfo> queryAllTableInfos();

}
